<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ include file="/common/taglibs.jsp"%>
 
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>设备管理</title>
<%@ include file="/common/util.jsp"%>
<script type="text/javascript">
//翻页
	function jumpPage(pageNo){
		window.location.href= "${cdnctx }/systemPointLight/PointLightList.shtml?"+ $.param($("#PointLightForm ").serializeObject())+"&pageIndex=" + pageNo  ;
	}                           
	 
    function add(){
	     window.location.href= "${cdnctx }/systemPointLight/PointLightEdit.shtml?pointid=" + ${areaPoint.id };
}   
    
    function update(id,pointlightId ){
	     window.location.href= "${cdnctx}/systemPointLight/PointLightEdit.shtml?pointid=" + id +"&id=" + pointlightId;
    }
    
	function  todelete(pointid,pointlightId){
	 		dialog_confirmled("确定删除吗？", function() {
	 	      window.location.href="${cdnctx}/systemPointLight/delPointLight.shtml?pointid=" + pointid + "&id=" + pointlightId;
	 	    });
	 }     
	
	
	
</script>
</head>

<body class="main">
	<div class="-frame -style -luster" id="css_container">

		<!--首页框架页眉部分↓-->
		<%@ include file="/WEB-INF/pages/inc/header.jsp"%>
		<!--首页框架页眉部分↑-->

		<div class="content">

			<!-- Left导航菜单◎开始 -->
			<%@ include file="/WEB-INF/pages/inc/leftmenu.jsp"%>
			<!-- Left导航菜单◎结束 -->
			<form id="customerInfoForm1">
			    <input type="hidden" id="lng" name="lng" value="1"/>
			    <input type="hidden" id="lat" name="lat" value="2"/>
			  </form>
			<div class="main-mid">
				<div class="pos"><img src="${cdnctx}/src/index/img/index.png">
				<a href="<%--${cdnctx}/system/systemMenu.shtml--%>">系统管理  ></a>
				<a href="${cdnctx}/system/customerinfo/customerMain.shtml">公司信息管理></a>
				<a href="${cdnctx}/systemCustomerArea/customerAreaList.shtml?customerinfoid=${customerArea.customerinfoid }">${customerArea.companyname }></a>
				<a href="${cdnctx}/systemAreaPoint/areaPointList.shtml?areaid=${customerArea.id }" >${customerArea.areaname }></a>
				<a >${areaPoint.pointname }_灯具设备管理</a>
				</div>
				<div class="css_contentDiv">
				<form action="${cdnctx}/systemPointLight/PointLightList.shtml" method="post" id="PointLightForm">
					<div class="searchArea" style="padding:10px;">
					<input type="hidden" name="pointid" value= '${areaPoint.id }' ></input>
						<label class="search_text">灯具番号:&nbsp;</label>
							<input type="text"
								id="ledlightcode" name="ledlightcode" class="search_input" value="${pointLight.ledlightcode }">
							<input  type="submit" class="search_btn"  value="查&nbsp;询">
							<input  type="button" class="add_btn" onclick="add();" value="新&nbsp;增" />
					</div>
				  </form>
					<div id="detailDiv" class="detailDiv">
					  <table id="sjxs" class="list_table">
					    <thead>
					      <tr>
					        <td>序号</td>
					        <td>传统灯具番号</td>
					        <td>灯具名称</td>
					        <td>功率（W）</td>
					        <td>数量</td>
					        <td>led灯具番号</td>
					        <td>灯具名称</td>
					        <td>功率（W）</td>
					        <td>数量</td>
					        <td>操&nbsp;&nbsp;&nbsp;作</td>
					      </tr>
					    </thead>
					    <c:if test="${empty(pointLights) }">
					    	<tr class="even" style="color:red">
					    		<td colspan="10" class="no-data" style="height: 280px;"></td>
					    	</tr>
					    </c:if>
					    <c:if test="${not empty(pointLights) }">
						    <tbody>
							    <c:forEach items="${pointLights}" var="entity" varStatus="status">
							    <tr>
							        <td>${status.index+1 }</td>
							        <td>${entity.tralightcode }</td>
							        <td>${entity.tralightname }</td>
							        <td>${entity.trapower }</td>
							        <td>${entity.tranum }</td>
							        <td>${entity.ledlightcode }</td>
							        <td>${entity.ledlightname }</td>
							        <td>${entity.ledpower }</td>
							        <td>${entity.lednum }</td>
							        <td width="120px;" nowrap="">
							          <input type="button" class="list_update_btn" onclick="update(${areaPoint.id },${entity.id});" value="修改">
							          <input type="button" class="list_delete_btn" onclick="todelete(${areaPoint.id },${entity.id});" value="删除"> 
							        </td>
							      </tr>
							    </c:forEach>
						    </tbody>
					    </c:if>
					  </table>
					  <br style="clear:both;">
					</div>
					<c:if test="${not empty(pointLights) }">
						<div id="pageInfo" class="pageJump">
							<script type="text/javascript">
				            	pagination.getPaginationHtml('JavaScript:jumpPage({0})',${pageIndex},${pageCount},'pageInfo');
				        	</script>
				        		共有${dataCount}条数据
						</div>
					</c:if>
				</div>
			</div>
		</div>
		<!--首页框架页尾部分↓-->
		<%@ include file="/WEB-INF/pages/inc/footer.jsp"%>
		<!--首页框架页尾部分↑-->
		</div>
</body>
</html>